[NTG-context] Re: Why LuaMetaTex is so slow?

2024-01-18 Thread Gavin via ntg-context
://wiki.contextgarden.net/Command/typesetbuffer My biggest book is about 200 pages. It takes 4 minutes to fully typeset on an M1 Mac. (I saw this time after downloading a new ConTeXt version.) This is mostly due to the 100+ complex TikZ diagrams. However, all of those diagrams are buffered, and when

[NTG-context] Re: Seeking advice for module that draws globes

2023-12-17 Thread Hans Hagen via ntg-context
\typesetbuffer[demo] 2. How do I organize this according to TDS for sharing? I know what TDS is and why it’s important, but that’s about it! Hraban will guide you here. 3. Should I be creating a namespace for this module, or launching a separate MetaFun instance? I have a general sense of what

[NTG-context] Re: new upload

2023-07-10 Thread Hans Hagen
} \dorecurse{4}{\samplefile{tufte}\par} } \stoptext \stopbuffer \startplacefigure[location=here,reference=fig:vz-1,title={Cheating with vertical expansion: \type {[vz=no]}.}] \startcombination[4*1] {\typesetbuffer[vz-1][width=\combinationwidth,page=1,frame=on]} {} {\typesetbuffer[vz-1

Re: [NTG-context] upload

2022-07-09 Thread Hans Hagen via ntg-context
*2] {\hbox to .45\textwidth{\typesetbuffer[threshold-none] [frame=on,width=.45\textwidth,page=#1]\hss}} {\type {threshold=none}} {\hbox to .45\textwidth{\typesetbuffer[threshold-small] [frame=on,width=.45\textwidth,page=#1]\hss}} {\type {threshold=small}} {\hbox

Re: [NTG-context] How to print a random whole number between x and y?

2022-06-17 Thread Wolfgang Schuster via ntg-context
ror message. What you can try is to replace \getrandomnumber and "page=\n" with "page=\randomnumber{...}{...}". \startbuffer[dummyfile] \dorecurse{10}{\centerbox{\definedfont[Sans sa 10]Page \recurselevel}} \stopbuffer \setuplayout[page] \starttext %\getrandomnumber\n{1}{10} %\

[NTG-context] figure not added in current latest

2021-11-17 Thread Pablo Rodriguez via ntg-context
][align=center] \dontleavehmode \typesetbuffer[flag] \stopmakeup \stoptext The image can be found at https://pdf.ousia.tk/uk-flag.pdf. Compiling it with latest from 2021.11.11 19:24, the final PDF contains the flag. I’m not sure whether there was another version (before the current latest

Re: [NTG-context] can typesetbuffer use the same engine?

2021-11-05 Thread Rik Kabel via ntg-context
On 11/5/2021 11:18, Hans Hagen via ntg-context wrote: On 11/5/2021 3:19 PM, Rik Kabel via ntg-context wrote: Hello brain trust, How can \typesetbuffer be instructed to use the same engine as the document which contains it? With the following example: \startbuffer[Buffer]    \startTEXpage

Re: [NTG-context] can typesetbuffer use the same engine?

2021-11-05 Thread Hans Hagen via ntg-context
On 11/5/2021 3:19 PM, Rik Kabel via ntg-context wrote: Hello brain trust, How can \typesetbuffer be instructed to use the same engine as the document which contains it? With the following example: \startbuffer[Buffer]   \startTEXpage \contextmark \stopTEXpage \stopbuffer \starttext

[NTG-context] can typesetbuffer use the same engine?

2021-11-05 Thread Rik Kabel via ntg-context
Hello brain trust, How can \typesetbuffer be instructed to use the same engine as the document which contains it? With the following example: \startbuffer[Buffer]   \startTEXpage \contextmark \stopTEXpage \stopbuffer \starttext   \contextmark\   \typesetbuffer[Buffer] \stoptext I get "

Re: [NTG-context] ConTeXt's equivalent of standalone class

2021-10-02 Thread Gavin via ntg-context
fers to make the figures: \startbuffer[MyTikZFigure] % TikZ code here \stopbuffer \startplacefigure[reference=MyFig, title={This is the figure’s caption}] \typesetbuffer[starttikz, MyTikZFigure,stoptikz] \stopplacefigure Following a suggestion from Hans, I made two buffer

Re: [NTG-context] TikZ in buffers: My struggle with \definestartstop

2021-07-08 Thread Gavin
]% Lots of setup can go here! \startTEXpage \starttikzpicture \stopbuffer \startbuffer[stoptikz] \stoptikzpicture \stopTEXpage \stopbuffer \define[2]\marginTikZ{ \startplacefigure[location=margin, reference=fig:#1, title={#2}] \typesetbuffer[starttikz,#1,stoptikz

Re: [NTG-context] TikZ in buffers: My struggle with \definestartstop

2021-07-08 Thread Hans Hagen
On 7/8/2021 7:55 PM, Gavin wrote: Hello, I have a book containing many margin figures drawn with TikZ, which is very slow. By putting the TikZ code in a buffer and using \typesetbuffer only altered TikZ code is executed on each run, saving tremendous time. This means the code containsmany

[NTG-context] TikZ in buffers: My struggle with \definestartstop

2021-07-08 Thread Gavin
Hello, I have a book containing many margin figures drawn with TikZ, which is very slow. By putting the TikZ code in a buffer and using \typesetbuffer only altered TikZ code is executed on each run, saving tremendous time. This means the code containsmany constructions like this, which I would

[NTG-context] How to define where \typesetbuffer store its pdf output ?

2021-06-13 Thread Garulfo
Hi all, is there a mean to define where \typesetbuffer store its pdf output ? (to avoid messing up the main directory). Garuflo ___ If your question is of interest to others as well, please add an entry

Re: [NTG-context] \startstaticMPfigure not producing .pdf or .mp.md5 files

2021-05-30 Thread Gavin
you could use \typesetbuffer and \startMPpage ... \stopMPpage instead. Two > auxiliary PDF files with funny names are generated. This indeed works as advertised. I will play with it. Thanks! Gavin ___ If y

Re: [NTG-context] \startstaticMPfigure not producing .pdf or .mp.md5 files

2021-05-30 Thread Jairo A. del Rio
It seems \startstarticMPfigure ... \stopstaticMPfigure is now a wrapper for reusable MP graphics, so auxiliary files are no longer generated. I don't think this counts as an answer but you could use \typesetbuffer and \startMPpage ... \stopMPpage instead. Two auxiliary PDF files with funny names

Re: [NTG-context] externalizing TikZ graphics

2021-01-25 Thread Aditya Mahajan
case the buffer only gets typeset when it changes: > > Thank you (and Henri)! But we’d need to include the same setup header every > time, so the filter module is probably really the best way. It is not only the tikz setup; you also need to copy the font setup etc. \typesetbuffer[setu

Re: [NTG-context] externalizing TikZ graphics

2021-01-25 Thread Hans Hagen
buffer[foo] % maybe include a style / enviroment \usemodule[tikz] \usetikzlibrary[patterns] \startTEXpage \starttikzpicture \draw[pattern color=red,pattern=bricks] (0,0) circle (1cm); \stoptikzpicture \stopTEXpage \stopbuffer \framed[offset=overlay]{\typ

Re: [NTG-context] Parallelizing typesetting of large documents with lots of cross-references

2020-12-03 Thread Hans Hagen
concurrent compiling and execution), you only need to process those snippets when something has changed and there are ways in context to deal with that (like \typesetbuffer and such which only processes when something changed between runs) - containing multiple MetaFun graphics, those don't take

Re: [NTG-context] startMPpage..stopMPpage written to a separate PDF?

2020-04-06 Thread Wolfgang Schuster
withcolor red ; \stopMPpage \stopbuffer \typesetbufferonly[square] \startbuffer[circle] \startMPpage draw fullcircle scaled 10 withcolor green ; \stopMPpage \stopbuffer \typesetbuffer[circle] \startbuffer[triangle] \startMPpage draw fulltriangle scaled 10

Re: [NTG-context] repeat a page inside a document

2020-02-07 Thread Pablo Rodriguez
of the first page to your document afterwards. I’m not sure I’m getting this: do you mean something similar to \typesetbuffer? Many thanks for your help, Pablo -- http://www.ousia.tk ___ If your question is of interest to o

Re: [NTG-context] caching buffers?

2019-04-12 Thread Henning Hraban Ramm
ia t-filter? >> If you need a MWE for this, I’ll assemble one. My actual setup is quite >> complicated, maybe that’s the problem... > \starttext > >\startbuffer[old-feature] >% load the relevant environment if needed >It works! >\stopbuffer &g

Re: [NTG-context] caching buffers?

2019-04-12 Thread Hans Hagen
he problem... \starttext \startbuffer[old-feature] % load the relevant environment if needed It works! \stopbuffer \typesetbuffer[old-feature][frame=on,width=4cm] \stoptext Only when buffers change they will be retype

Re: [NTG-context] Insert "minipage"

2019-02-22 Thread Lizardo M. Reyna Bowen
how the result of a >> startdarmakeup, as in the following pdf. >> >> http://www.pragma-ade.com/show-art.pdf#[0,{%22name%22:%22Fit%22}] > > \setuppapersize[A4,landscape] > > \starttext > > \startbuffer[standardmakeup] > \startstandardmakeup > Hello > \stopstandardm

Re: [NTG-context] Insert "minipage"

2019-02-22 Thread Lizardo M. Reyna Bowen
how the result of a >> startdarmakeup, as in the following pdf. >> >> http://www.pragma-ade.com/show-art.pdf#[0,{%22name%22:%22Fit%22}] > > \setuppapersize[A4,landscape] > > \starttext > > \startbuffer[standardmakeup] > \startstandardmakeup > Hello > \s

Re: [NTG-context] Insert "minipage"

2019-02-22 Thread Wolfgang Schuster
:%22Fit%22}] \setuppapersize[A4,landscape] \starttext \startbuffer[standardmakeup] \startstandardmakeup Hello \stopstandardmakeup \stopbuffer \typesetbuffer[standardmakeup][frame=on,height=\textheight] \stoptext

Re: [NTG-context] Implicit plots/level curves possible?

2018-10-09 Thread Mikael P. Sundqvist
y, -2, 1/2}] > >>>>> > >>>>> Brut force: > >>>>> [...] > >>>>> > >>>> as this takes some time here's a cheat: > >>>> > >>>> \starttext > >>>> > >>>> \startbuffer[

Re: [NTG-context] Implicit plots/level curves possible?

2018-10-08 Thread Hans Hagen
qvist" wrote: ContourPlot[2 x^5 + x y + y^5 == 0, {x, 0, 2}, {y, -2, 1/2}] Brut force: [...] as this takes some time here's a cheat: \starttext \startbuffer[demo] [...] \stopbuffer \startTEXpage     \typesetbuffer[demo] \stopTEXpage \stoptext a next run the already prepared buffer will be t

Re: [NTG-context] Implicit plots/level curves possible?

2018-10-08 Thread Aditya Mahajan
= 0, {x, 0, 2}, {y, -2, 1/2}] Brut force: [...] as this takes some time here's a cheat: \starttext \startbuffer[demo] [...] \stopbuffer \startTEXpage \typesetbuffer[demo] \stopTEXpage \stoptext a next run the already prepared buffer will be taken unles it has been changed.

Re: [NTG-context] Implicit plots/level curves possible?

2018-10-08 Thread Alan Braslau
gt;> ContourPlot[2 x^5 + x y + y^5 == 0, {x, 0, 2}, {y, -2, 1/2}] > >> > >> Brut force: > >> [...] > >> > > as this takes some time here's a cheat: > > > > \starttext > > > > \startbuffer[demo] > > [...] > > \

Re: [NTG-context] Implicit plots/level curves possible?

2018-10-08 Thread Aditya Mahajan
tartbuffer[demo] [...] \stopbuffer \startTEXpage \typesetbuffer[demo] \stopTEXpage \stoptext a next run the already prepared buffer will be taken unles it has been changed. I thought that this will also be a good usecase of showing Lua+MP interaction. I wrote the code below following t

Re: [NTG-context] Implicit plots/level curves possible?

2018-10-07 Thread Hans Hagen
orner pic]) ; endfor ; for y=0 step .5 until 2.5 : label.lft(decimal (y-2),(y/2.5)[llcorner pic,ulcorner pic]) ; endfor ; \stopMPcode \stopbuffer \startTEXpage \typesetbuffer[demo] \stopTEXpage \stoptext a next run the already prepared

Re: [NTG-context] beta

2018-06-22 Thread Wolfgang Schuster
s file be loaded? \stopbuffer \typesetbuffer[scale=500] \stoptext end example or when I try to insert cow.pdf begin example \setupexternalfigure[location=default] \starttext \externalfigure[cow] \stoptext end example Wo

Re: [NTG-context] issues with \typesetbuffer

2018-04-18 Thread Pablo Rodriguez
B\stopTEXpage\stoptext\stopbuffer \startbuffer[c]\starttext\startTEXpage C\stopTEXpage\stoptext\stopbuffer \starttext Just an empty page. \typesetbuffer[a] \typesetbuffer[b] \typesetbuffer[c] \stoptext The same font is embedded four times in the sample above. Many than

Re: [NTG-context] issues with \typesetbuffer

2018-04-18 Thread Hans Hagen
On 4/18/2018 6:38 PM, Pablo Rodriguez wrote: Hans, I have the following sample: \setuppapersize[A5][A4, landscape] \setuparranging[2SIDE] works ok here but arranging might interfere (do that on the commandline) -

[NTG-context] issues with \typesetbuffer

2018-04-18 Thread Pablo Rodriguez
, align={lohi, center}, foregroundstyle=\ssbfb] {Just \tex{typesetbuffer}} \stopalign\vfill \stoptext \stopbuffer \startbuffer[b] \showframe \setuppapersize[A5] \setuppagenumbering[location=] \setuplayout[width=middle] \starttext \mbox

Re: [NTG-context] \xmldoifelseempty

2018-03-18 Thread Pablo Rodriguez
tion[state=start] \setupinteractionscreen[option={landscape}] \starttext \startbuffer[real-document] \setuppapersize[A5]%% this might be removed \starttext a\index{b} b\index{c} c\index{d} \placeindex \stoptext \stopbuffer

[NTG-context] \xmldoifelseempty

2018-03-18 Thread Pablo Rodriguez
} \xmldoifelseempty{#1}{../pre[contains(@class,'fullwidth')]} {\startalign[center]\dontleavehmode\typesetbuffer[whereever][width=.5\textwidth]\stopalign} {\startalign[center]\dontleavehmode\typesetbuffer[whereever][width=\textwidth]\stopalign} \stopxmlsetups \starttext \xmlprocessbuffer{main

Re: [NTG-context] \definebodyfont not working for \typesetbuffer

2016-10-16 Thread Pablo Rodriguez
On 10/16/2016 08:16 PM, Wolfgang Schuster wrote: >> Pablo Rodriguez 16. Oktober 2016 um 20:07 >> [...] >> Neither does it work now. > > Use \definebodyfontenvironment[17pt]. Many thanks for your fast reply, Wolfgang. It works as expected. Pablo -- http://www.ousia.tk

Re: [NTG-context] \definebodyfont not working for \typesetbuffer

2016-10-16 Thread Wolfgang Schuster
optext \stopbuffer \starttext \typesetbuffer[buffer:inside] \stoptext Neither does it work now. Use \definebodyfontenvironment[17pt]. Wolfgang ___ If your question is of interest to others as well, please add an

Re: [NTG-context] \definebodyfont not working for \typesetbuffer

2016-10-16 Thread Pablo Rodriguez
n’t work with latest beta from 2016.10.14 17:19. >> >> Could you confirm whether it is a bug or I am missing something? > > You have to put the command in the buffer because \typesetbuffer saves > the content in a external file and which is then processed as separate > document which

Re: [NTG-context] \definebodyfont not working for \typesetbuffer

2016-10-16 Thread Wolfgang Schuster
rttext \typesetbuffer[buffer:inside] \stoptext As suggested by Wolfgang, \definebodyfont should work. It worked then (https://mailman.ntg.nl/pipermail/ntg-context/2016/085260.html), but it doesn’t work with latest beta from 2016.10.14 17:19. Could you confirm whether it is a bug or I am missing som

[NTG-context] \definebodyfont not working for \typesetbuffer

2016-10-16 Thread Pablo Rodriguez
\typesetbuffer[buffer:inside] \stoptext As suggested by Wolfgang, \definebodyfont should work. It worked then (https://mailman.ntg.nl/pipermail/ntg-context/2016/085260.html), but it doesn’t work with latest beta from 2016.10.14 17:19. Could you confirm whether it is a bug or I am missing something

Re: [NTG-context] typeset page in page

2016-10-10 Thread Wolfgang Schuster
format | | | | | | | | | | | | | | | | | | | +-+ | | | | | | | | | | | | | | | +--+ \starttext \startbuffer[ward] \setuppapersize[A5] \showframe \starttext \subject{Ward} \input ward \stoptext \stopbuffer \startplacefigure[title={Creating a example with \tex{typesetbuffer}}] \typesetbuffer[ward][width=.5\tex

[NTG-context] typesetbuffer in \insertpages

2016-05-01 Thread Pablo Rodriguez
] \startbuffer[hola] \mainlanguage[es] \starttext \dorecurse{32}{\input cervantes-es\par} \stoptext \stopbuffer \starttext \typesetbuffer[hola] %~ \insertpages[{\typesetbuffer[hola]}][width=Opt] \stoptext Is there any way to make the commented \insertpages

Re: [NTG-context] font size inside a \typesetbuffer

2016-04-25 Thread Pablo Rodriguez
On 04/25/2016 10:21 AM, Wolfgang Schuster wrote: >> Pablo Rodriguez 24. April 2016 um 12:23 >> [...] >> The issue I’m experiencing is that no mainface is selected if the font >> size is specified in \setupbodyfont. >> >> Am I missing something or have I hit a bug? > [...] > 2. Add

Re: [NTG-context] font size inside a \typesetbuffer

2016-04-25 Thread Wolfgang Schuster
Pablo Rodriguez <mailto:oi...@gmx.es> 24. April 2016 um 12:23 Dear list, I have the following sample: \startbuffer[buffer:inside] \definefontfamily[mainface][rm][TeX Gyre Pagella] \setupbodyfont[mainface, 17pt] \starttext \input zapf \stoptext \stopbuffer \starttext \typesetbuffer[buffer:

[NTG-context] font size inside a \typesetbuffer

2016-04-24 Thread Pablo Rodriguez
Dear list, I have the following sample: \startbuffer[buffer:inside] \definefontfamily[mainface][rm][TeX Gyre Pagella] \setupbodyfont[mainface, 17pt] \starttext \input zapf \stoptext \stopbuffer \starttext \typesetbuffer[buffer:inside

Re: [NTG-context] apply typing environment to \typebuffer

2014-01-15 Thread Pablo Rodriguez
. This is exactly what I wanted. Although I’m afraid that this breaks the \typesetbuffer (since it typesets an empty buffer). Here is a more detailed sample: \definetyping[buffer][option=TEX,before=\startframedtext,after=\stopframedtext] \setuptyping[buffer][style=\tt\setupinterlinespace,align={right

Re: [NTG-context] apply typing environment to \typebuffer

2014-01-15 Thread Wolfgang Schuster
[buffer] [option=TEX] Many thanks for your reply, Marco. This is exactly what I wanted. Although I’m afraid that this breaks the \typesetbuffer (since it typesets an empty buffer). Here is a more detailed sample: \definetyping[buffer][option=TEX,before=\startframedtext,after

[NTG-context] apply typing environment to \typebuffer

2014-01-14 Thread Pablo Rodriguez
Dear list, I have a presentation that defines a typing environment and I would like to know who to apply it to \typebuffer. Here is a sample: \definetyping[TeXcode][option=TEX] \starttext \startbuffer[a] \starttext \input knuth \stoptext \stopbuffer \typesetbuffer[a] \typebuffer[a] \stoptext

Re: [NTG-context] two suggestions to \typesetbuffer

2013-11-10 Thread Hans Hagen
On 11/9/2013 12:49 PM, Pablo Rodriguez wrote: Of course, fonts are embedded fine in documents, but \typesetbuffer is a special case. Having the fonts embedded only once in the final document would be better. You can try the beta ... i'm not sure about it yes but this one is faster, we might

Re: [NTG-context] two suggestions to \typesetbuffer

2013-11-10 Thread Pablo Rodriguez
to 181 seconds. And subsequent compilations decreased from 70 seconds to 7 seconds. The sample shows the issue with embedded fonts: \starttext These are bufers: \startbuffer[text:1] \setuppapersize[A7] \starttext\input tufte\stoptext \stopbuffer \typesetbuffer[text:1][frame=on] \startbuffer[text:2

Re: [NTG-context] two suggestions to \typesetbuffer

2013-11-10 Thread Hans Hagen
On 11/10/2013 1:32 PM, Pablo Rodriguez wrote: On 11/10/2013 12:30 PM, Hans Hagen wrote: You can try the beta ... i'm not sure about it yes but this one is faster, we might end up with several methods to choose from depending on usage. The same font is embedded three times in the final PDF.

Re: [NTG-context] two suggestions to \typesetbuffer

2013-11-09 Thread Pablo Rodriguez
On 11/08/2013 11:39 PM, Hans Hagen wrote: On 11/8/2013 7:11 PM, Pablo Rodriguez wrote: Dear Hans, I have presentations that include buffers typeset with \typesetbuffer. One of the presentation includes 33 buffers, which are small ConTeXt samples. Any time I change anything

Re: [NTG-context] two suggestions to \typesetbuffer

2013-11-09 Thread Wolfgang Schuster
Am 09.11.2013 um 12:49 schrieb Pablo Rodriguez oi...@gmx.es: On 11/08/2013 11:39 PM, Hans Hagen wrote: On 11/8/2013 7:11 PM, Pablo Rodriguez wrote: Dear Hans, I have presentations that include buffers typeset with \typesetbuffer. One of the presentation includes 33 buffers, which

[NTG-context] two suggestions to \typesetbuffer

2013-11-08 Thread Pablo Rodriguez
Dear Hans, I have presentations that include buffers typeset with \typesetbuffer. One of the presentation includes 33 buffers, which are small ConTeXt samples. Any time I change anything on the presentation (not on the buffers themselves), every buffer is typeset again. And the compilation time

Re: [NTG-context] two suggestions to \typesetbuffer

2013-11-08 Thread Hans Hagen
On 11/8/2013 7:11 PM, Pablo Rodriguez wrote: Dear Hans, I have presentations that include buffers typeset with \typesetbuffer. One of the presentation includes 33 buffers, which are small ConTeXt samples. Any time I change anything on the presentation (not on the buffers themselves), every

[NTG-context] Overwriting buffer causes LuaTeX error

2013-09-19 Thread Marco Patzer
\typesetbuffer [foo] \startbuffer [foo] foo \stopbuffer \typesetbuffer [foo] \stoptext Marco signature.asc Description: Digital signature ___ If your question is of interest to others as well, please add

Re: [NTG-context] Overwriting buffer causes LuaTeX error

2013-09-19 Thread Hans Hagen
\startbuffer [foo] foo \stopbuffer \typesetbuffer [foo] \startbuffer [foo] foo \stopbuffer \typesetbuffer [foo] \stoptext i uploaded a fix (some additional checking on redefining such buffers) .. the backend keeps the file open (which is where the message comes from

Re: [NTG-context] include two pages from typesetbuffer

2013-08-10 Thread Pablo Rodríguez
\startTEXpage[offset=10pt] two \stopTEXpage \startTEXpage[offset=10pt] three \stopTEXpage \stoptext \stopbuffer \typesetbuffer[sample][frame=on,page=1] \typesetbuffer[sample][frame=on,page=2] \typesetbuffer[sample][frame=on,page=3

[NTG-context] \typesetbuffer at wiki

2013-08-10 Thread Pablo Rodríguez
Dear list, I have just created http://wiki.contextgarden.net/Command/typesetbuffer. In the typeset sample, it seems that \typesetbuffer doesn’t work at the wiki (it doesn’t include the image). Am I missing something here? Many thanks for your help, Pablo -- http://www.ousia.tk

Re: [NTG-context] \typesetbuffer at wiki

2013-08-10 Thread Sietse Brouwer
On 10 August 2013 12:06, Pablo Rodríguez oi...@web.de wrote: Dear list, I have just created http://wiki.contextgarden.net/Command/typesetbuffer. In the typeset sample, it seems that \typesetbuffer doesn’t work at the wiki (it doesn’t include the image). Am I missing something here? Many thanks

Re: [NTG-context] \typesetbuffer at wiki

2013-08-10 Thread Pablo Rodríguez
On 08/10/2013 01:51 PM, Sietse Brouwer wrote: Hi Pablo, This is probably a backend problem. I know that examples where multiple pages are imposed onto one sheet also don’t work; this is probably similar. I might look into it at some point, try to improve the php, but it’s not a priority.

Re: [NTG-context] include two pages from typesetbuffer

2013-08-09 Thread Pablo Rodríguez
On 08/08/2013 10:40 PM, Hans Hagen wrote: On 8/8/2013 10:15 PM, Hans Hagen wrote: On 8/8/2013 9:01 PM, Pablo Rodríguez wrote: Dear list, I would like to be able to include the first two pages of a typeset buffer (included with \typesetbuffer[sample][frame=on]). Is there any way to do

Re: [NTG-context] include two pages from typesetbuffer

2013-08-09 Thread Hans Hagen
On 8/9/2013 9:39 PM, Pablo Rodríguez wrote: On 08/08/2013 10:40 PM, Hans Hagen wrote: On 8/8/2013 10:15 PM, Hans Hagen wrote: On 8/8/2013 9:01 PM, Pablo Rodríguez wrote: Dear list, I would like to be able to include the first two pages of a typeset buffer (included with \typesetbuffer[sample

[NTG-context] simplefonts doesn’t select the font

2013-08-08 Thread Pablo Rodríguez
Dear list, I have the following sample: \starttext \startbuffer[testbuffer] \setuppapersize[A7] \usemodule[simplefonts][size=10.5pt] \setmainfont[TeX Gyre Pagella] \starttext This isn’t \TeX\ Gyre Pagella. \stoptext \stopbuffer \typesetbuffer[testbuffer

[NTG-context] include two pages from typesetbuffer

2013-08-08 Thread Pablo Rodríguez
Dear list, I would like to be able to include the first two pages of a typeset buffer (included with \typesetbuffer[sample][frame=on]). Is there any way to do this? I’d like to avoid to save the buffer to a file. Many thanks for your help, Pablo -- http://www.ousia.tk

Re: [NTG-context] simplefonts doesn’t select the font

2013-08-08 Thread Wolfgang Schuster
Pagella. \stoptext \stopbuffer \typesetbuffer[testbuffer] \stoptext Only with decimal font sizes, simplefonts (and probably the standard font mechanism [which I don’t know how to use it]) isn’t able to select the font in the buffer. You can use \setupbodyfont[pagella] to load

Re: [NTG-context] include two pages from typesetbuffer

2013-08-08 Thread Hans Hagen
On 8/8/2013 9:01 PM, Pablo Rodríguez wrote: Dear list, I would like to be able to include the first two pages of a typeset buffer (included with \typesetbuffer[sample][frame=on]). Is there any way to do this? I’d like to avoid to save the buffer to a file. \typesetbuffer[sample][frame

Re: [NTG-context] include two pages from typesetbuffer

2013-08-08 Thread Hans Hagen
On 8/8/2013 10:15 PM, Hans Hagen wrote: On 8/8/2013 9:01 PM, Pablo Rodríguez wrote: Dear list, I would like to be able to include the first two pages of a typeset buffer (included with \typesetbuffer[sample][frame=on]). Is there any way to do this? I’d like to avoid to save the buffer

Re: [NTG-context] Is it possible to generate only a table of contents

2011-03-18 Thread Peter Münster
be done much better! \dorecurse{3}{\typesetbuffer[mydocument][page=\recurselevel]} \stoptext -- Peter ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg

Re: [NTG-context] Is it possible to generate only a table of contents

2011-03-18 Thread luigi scarso
% Here, you must know the number of pages of the toc. % Certaninly, this can be done much better! \dorecurse{3}{\typesetbuffer[mydocument][page=\recurselevel]} \stoptext there is a \discardpage OTR macro, I've never used it. -- luigi

Re: [NTG-context] TeX-figures

2011-01-30 Thread Peter Münster
this explicitly: \stopbuffer \savebuffer[mytable][mytable.tmp] \externalfigure[mytable.tmp][width=0.8\textwidth] There is also \typesetbuffer: \starttext \startbuffer[mytable] \startTEXpage bla bla bla \stopTEXpage \stopbuffer \typesetbuffer[mytable][width=0.8\textwidth] \stoptext I'll update section 16.5

[NTG-context] \typesetbuffer adds \starttext ... \stoptext

2011-01-30 Thread Peter Münster
Hello, It would be nice, if \typesetbuffer wouldn't add anything to the buffer. Here an example, where the outer \starttext ... \stoptext environment deranges: \starttext \startbuffer[pdf-pages] \setuppapersize[A7, landscape] \showframe \starttext page 1 \page page 2 \stoptext

Re: [NTG-context] \typesetbuffer adds \starttext ... \stoptext

2011-01-30 Thread Wolfgang Schuster
Am 30.01.2011 um 19:52 schrieb Peter Münster: Hello, It would be nice, if \typesetbuffer wouldn't add anything to the buffer. Here an example, where the outer \starttext ... \stoptext environment deranges: Why, context ignores the inner starttext/stoptext pair. Wolfgang

Re: [NTG-context] \typesetbuffer adds \starttext ... \stoptext

2011-01-30 Thread Peter Münster
Wolfgang Schuster schuster.wolfg...@googlemail.com writes: It would be nice, if \typesetbuffer wouldn't add anything to the buffer. Here an example, where the outer \starttext ... \stoptext environment deranges: Why, context ignores the inner starttext/stoptext pair. Wrong interpretation

Re: [NTG-context] \typesetbuffer adds \starttext ... \stoptext

2011-01-30 Thread Vnpenguin
On Sun, Jan 30, 2011 at 19:52, Peter Münster pmli...@free.fr wrote: Hello, It would be nice, if \typesetbuffer wouldn't add anything to the buffer. Yep, I agree that. Don't know why need add something to buffer

Re: [NTG-context] \typesetbuffer adds \starttext ... \stoptext

2011-01-30 Thread Wolfgang Schuster
Am 30.01.2011 um 20:23 schrieb Vnpenguin: On Sun, Jan 30, 2011 at 19:52, Peter Münster pmli...@free.fr wrote: Hello, It would be nice, if \typesetbuffer wouldn't add anything to the buffer. Yep, I agree that. Don't know why need add something to buffer ? \typesetbuffer add \starttext

Re: [NTG-context] \typesetbuffer adds \starttext ... \stoptext

2011-01-30 Thread Wolfgang Schuster
Am 30.01.2011 um 20:20 schrieb Peter Münster: Nevertheless: are there situations, where the outer starttext/stoptext could cause some trouble? Don’t think so because when you use the project structure you have \startproduct \startcomponent … \stopcomponent \startcomponent … \stopcomponent

Re: [NTG-context] pdf file not found

2010-09-10 Thread Hans Hagen
\stoptext \stopbuffer \typesetbuffer[pdf-pages][page=2,frame=on] \stoptext this has the advantage that when the buffer does not change, you get no new run either Hans - Hans Hagen